<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li:nth-child(n+2){
            color: red;
        }
        input:read-only{
            color: red;
        }
        :read-write{
            color: green;
        }
        ::selection{
            background-color: greenyellow;
            color: hotpink;
        }
        p{
            line-height: 2.4;
        }
        .p1{
            border: 1px solid red;
            width: 400px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        div.box{
            width: 200px;
            height: 200px;
            /* border:1px solid red */
            /* border-width: 5px;
            border-style: dashed;
            border-color: indigo; */
            /* border-top:5px dashed indigo */
            border-top-width: 10px;
            border-top-style: double;
            border-top-color: khaki;
        }
        .box1{
            width: 10px;
            height: 10px;
            border-left: 100px solid transparent;
            border-right: 100px solid transparent;
            border-top: 100px solid rgb(38, 0, 255);
            border-bottom: 100px solid transparent;
        }

    </style>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
    </ul>
    <input type="text" value="read and write"><br>
    <input type="text" value="only read" readonly><br>
    <div>
        <label for="">1</label>
        <input type="checkbox" disabled>
        <label for="">2</label>
        <input type="checkbox">
        <input type="radio" disabled>
    </div>
    <p>尝试选中我</p>
    <p class="p1">提示：该属性不能单独使用，必须要配合文本换行处理属性“white-space”和内容溢出处理属性“overflow”来使用，否则会达不到所期望的效果。</p>
    <div class="box"></div>
    <div class="box1"></div>
</body>
</html>